import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/index.dart';
import 'package:provider/provider.dart';

void main() {
  Provider.debugCheckInvalidValueType = null;
  runApp(MultiProvider(
    providers: [],
    child: MyApp(),
  ));
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '百姓生活++',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primaryColor: Colors.pink,
      ),
      home: IndexPage(),
    );
  }
}

/**
 * NOTE: 记录 Provider 的使用心得;
 * 1, 创建数据 Model, 这个model 会 mixin ChangeNotifier
 */
